#include "texture.h"

Texture::Texture(){
}

Texture::Texture(Turbulence a,Turbulence b){
	this->a = a;
	this->b = b;
}

double Texture::At(const Vector& vect) const {
	double noise = 0;

	for(int i = 0; i < this->list_turbu.size(); ++i){
		noise += this->list_turbu.at(i).Index(vect);
	}
	return noise;
}

void Texture::add(const Turbulence& t){
	this->list_turbu.push_back(t);
}